define([
    'zepto',
    'underscore',
    'backbone',
    "text!templates/client/success.html",
    "wTools"

], function ($, _, Backbone, template) {
    return Backbone.View.extend({
        $el: $main,
        el: $main0,
        template: _.template(template),
        events: {

        },
        initialize: function () {
            $("#home").html("");
            wData.urlData.amount=parseInt(parseFloat(wData.urlData.amount)*100);
            this.render(wData);
            $("#resultMsg").html("支付成功");

        },


        back: function () {
            //
        },
        render: function (data) {
            var html = this.template(data);
            this.$el.html(html);
        },
        destroy: function () {
            this.undelegateEvents();
            this.$el.html("");
            $("#head_back").show();
            delete this;
        }
    });
});